#!/usr/bin/env python
# -*- coding:utf-8 -*-

count = 1
while count <= 3:

    username = input('请输入用户名：')
    password = input('请输入密码：')
    if username == 'lujianbo' and password == '123':
        print('登录成功')
        break
    else:
        print('登陆失败')
    if count == 3:
        choice = input('请输入Y/N')
        if choice == 'Y':
            continue
        elif choice == 'N':
            count = 1
        else:
            break
        print('您已输错三次密码')
        break
    count += 1
